package cn.com.bs.srmp.dto.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentFontStyle;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadFontStyle;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;

import lombok.Builder;
import lombok.Data;

/**
 * @Author mic
 * @Date 2022-08-02 17:47
 */
@Data
@Builder
@HeadRowHeight(30) //表头行高
@ContentRowHeight(25) //数据行高
@ColumnWidth(25) //列宽
@HeadFontStyle(fontHeightInPoints = 14)
@ContentFontStyle(fontName="宋体" ,fontHeightInPoints = 12)
public class ExternalInterfaceExcel {

    /**
     * 组件名称
     */
    @ExcelProperty(value = "组件名称", index = 0)
    private String componentName;

    /**
     * 被依赖组件
     */
    @ExcelProperty(value = "被依赖组件", index = 1)
    private String relyComponentName;

    /**
     * 依赖方式 Feign
     */
    @ExcelProperty(value = "依赖方式", index = 2)
    @ColumnWidth(15)
    private String relyType;

    /**
     * 被依赖接口方法
     */
    @ExcelProperty(value = "被依赖接口方法", index = 5)
    @ColumnWidth(100)
    private String method;

    /**
     * 是否已支持熔断、降级
     */
    @ExcelProperty(value = "是否已支持熔断、降级", index = 6)
    @ColumnWidth(35)
    private String fuse;

    /**
     * 接口方法
     */
    @ExcelProperty(value = "接口映射路径", index = 3)
    @ColumnWidth(60)
    private String mappingPath;

    /**
     * 描述
     */
    @ExcelProperty(value = "描述", index = 4)
    @ColumnWidth(30)
    private String desc;
}
